package common;

import java.io.Serializable;
import java.util.Date;

public class Measurment implements Data, Serializable {
	private static final long serialVersionUID = 8442902038932968214L;
	private double temperature; 
	private Date date;
	
	public Measurment() {
		
	}
	
	public Measurment(Date date, double temperature) {
		setDate(date);
		setTemperature(temperature);
	}
	
	@Override
	public double getTemperature() {
		return temperature;
	}

	@Override
	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public void setTemperature(double temperature) {
		this.temperature = temperature;
	}

}
